package com.cans.builder;

/**
 * 手机创建 - 指挥者
 * @author cans
 * @date 2024/2/18
 **/
public class PhoneDirector {

    private PhoneBuilder builder;

    public PhoneDirector(PhoneBuilder phoneBuilder){
        this.builder = phoneBuilder;
    }

    public void build() {
        builder.buildCpu();
        builder.BuildArm();
        builder.buildDisk();
    }
}
